package chapter3.test01;
//1、 	编写并测试一个代表地址的类，包括以下的属性：国家、省份、城市、街道、邮编。
public class TestAddress {
    public static void main(String[] args) {
        Adress a = new Adress();
        System.out.println(a.toString());
    }
}
class Adress{
    String country;
    String prvince;
    String city;
    String street;
    int code;


    @Override
    public String toString() {
        return "Adress{" +
                "country='" + country + '\'' +
                ", prvince='" + prvince + '\'' +
                ", city='" + city + '\'' +
                ", street='" + street + '\'' +
                ", code=" + code +
                '}';
    }
}
